package org.luxor.commons.websocket.component.protocol;

/**
 *
 * @author Mr.yan  @date 2021/9/4
 */
public abstract class AbstractCommand {

    public static final String REMOVE_COMMAND = "remove";
    public static final String SEND_COMMAND = "send";
    public static final String SEND_ALL_COMMAND = "sendAll";

    /**
     * 获取指令
     *
     * @param
     * @return java.lang.String
     */
    public abstract String getCommand();

    /**
     * 转换成Json字符
     *
     * @return java.lang.String
     */
    public abstract String toJson();

    public AbstractCommand() {
        // An empty constructor
    }


}
